package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@TableName("sys_log")
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@Accessors(chain = true)
public class SysLog extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    // 日志类型 成功、失败、调试
    private String logType;

    // 操作模块
    private String moduleType;

    // 操作模块
    private String busType;

    //业务主键
    private String busId;

    //业务主键
    private String busKey;

    // 操作人
    private String busUser;

    // 说明信息
    private String remark;

    // 操作时间
    private Date opTime;

    /**
     * @Description：日志类型
     */
    public static class LogType {
        /**
         * @Description：success
         */
        public static final String success ="success";
        /**
         * @Description：error
         */
        public static final String error ="error";
        /**
         * @Description：debug
         */
        public static final String debug ="debug";
    }

    /**
     * @Description：模块类型
     */
    public static class moduleType {
        public static final String delivery ="发货单";
        public static final String order ="采购单";
    }

}
